package com.xbongbong.pro.marketing.pojo;

import com.xbongbong.saas.enums.XbbRefTypeEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Arrays;
import java.util.List;


@Getter
@Setter
@ToString
public class MarketingManagementPojo implements Serializable {


    private static List<MarketingManagementPojo> marketingActivities  = Arrays.asList(new MarketingManagementPojo(XbbRefTypeEnum.FULL_DISCOUNT_COUPON.getName(), XbbRefTypeEnum.FULL_DISCOUNT_COUPON.getCode()));

    private static List<MarketingManagementPojo> promotionActivities  = Arrays.asList(new MarketingManagementPojo(XbbRefTypeEnum.SPECIAL_GOODS.getName(), XbbRefTypeEnum.SPECIAL_GOODS.getCode()));

    /**
     * 活动名称
     */
    private String activityName;
    /**
     * 活动类型
     */
    private Integer businessType;


    private MarketingManagementPojo(String activityName, Integer businessType) {
        this.activityName = activityName;
        this.businessType = businessType;
    }


    /**
     * 获得营销活动的种类
     * @return
     */
    public static List<MarketingManagementPojo> getMarketingActivities(){
        return marketingActivities;
    }


    /**
     * 获得促销活动的种类
     * @return
     */
    public static List<MarketingManagementPojo> getPromotionActivities(){
        return promotionActivities;
    }
}
